class Solution(object):
    def minCostToMoveChips(self, position):
        """
        :type position: List[int]
        :rtype: int
        """
        t = [0, 0]
        for p in position:
            t[p % 2] += 1
        return min(t)



data = Solution()
position = [2, 2, 2, 3, 3]
print(data.minCostToMoveChips(position))
